
public abstract class VehicleFactory {
	public static final String LUXURY_VEHICLE = "Luxury";
	public static final String NON_LUXURY_VEHICLE = "Non-Luxury";

	public abstract Car getCar();
	public abstract SUV getSUV();
	
	public static VehicleFactory getVehiclerFactory(String type){
		if (type.equals(VehicleFactory.LUXURY_VEHICLE))
			return new LuxuryVehicleFactory();
		
		if(type.equals(VehicleFactory.NON_LUXURY_VEHICLE))
			return new NonLuxuryVehicleFactory();
		
		return new LuxuryVehicleFactory();
	}
}
